﻿@model CodeSaude.Application.ViewModels.PessoaViewModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm("Create", "Pessoa", FormMethod.Post))
{
    @Html.HiddenFor(m => m.PessoaId)
    @Html.AntiForgeryToken()

    <div class="panel panel-default">
        <div class="panel-heading" style="font-weight: bold;">Dados Pessoais</div>
        <div class="panel-body">
            <table>
                <tr>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.NomePessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.NomePessoa, new { htmlAttributes = new { @class = "form-control input-xlarge" } })
                            @Html.ValidationMessageFor(model => model.NomePessoa)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.DataNascPessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.DataNascPessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.DataNascPessoa)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">

                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.SexoPessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.SexoPessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.SexoPessoa)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.IdRacaCor, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.IdRacaCor, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.IdRacaCor)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.NomeMaePessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.NomeMaePessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.NomeMaePessoa)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.NomePaiPessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.NomePaiPessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.NomePaiPessoa)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.EstadoCivilPessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.EstadoCivilPessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.EstadoCivilPessoa)
                        </div>
                    </td>
                    <td colspan="2">
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.IdEtnia, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.IdEtnia, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.IdEtnia)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.IdNacionalidade, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.IdNacionalidade, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.IdNacionalidade)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.UFNaturalidadePessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.UFNaturalidadePessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.UFNaturalidadePessoa)
                        </div>
                    </td>
                    <td colspan="3">
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.NaturalidadePessoa, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.NaturalidadePessoa, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.NaturalidadePessoa)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.IdPaisOrigem, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.IdPaisOrigem, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.IdPaisOrigem)
                        </div>

                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.DataEntrada, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.DataEntrada, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.DataEntrada)
                        </div>
                    </td>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.DataNaturalizacao, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.DataNaturalizacao, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.DataNaturalizacao)
                        </div>
                    </td>
                    <td colspan="2">
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.NumeroNaturalizacao, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.NumeroNaturalizacao, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.NumeroNaturalizacao)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.IdEscolaridade, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.IdEscolaridade, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.IdEscolaridade)
                        </div>
                    </td>
                    <td colspan="4">
                        <div style="float:left; margin-right: 20px;">
                            @Html.LabelFor(model => model.FrequentaEscola, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.FrequentaEscola, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.FrequentaEscola)
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>


}

